//
//  DolphinUICategory.h
//  Dolphin
//
//  Created by Matthew on 11-7-25.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "UICategoryUnit.h"
#import "AlbumXMLParser.h"

@class UICategoryUnit;
@class AlbumXMLParser;

@interface DolphinUICategory : UIView <UIScrollViewDelegate>
{
    UIView *bgLayer;
    UIScrollView *uiscrollView;
    
    int unit_width;
    int unit_height ;
    int unit_between_width;
    int unit_between_height ;
    int unit_start_off_x ;
    int unit_start_off_y ;
    int border_width ;
    int border_height;
    
    int col_num;
    int row_num;
    
    int unit_num;
}

-(void) reset;
-(void) notificationSelector:(NSNotification *) notification;
-(void) initWithAlbumList:(AlbumXMLParser *) inAlbumXMLParser 
                      orientation:(UIInterfaceOrientation) interfaceOrientation;

-(void) refreshPage;
-(void) layoutAdjustWithOrientation:(UIInterfaceOrientation)interfaceOrientation;
-(void) arrangeUnitsPositions;

@end
